//
//  GetMessageList.m
//  RONGAO
//
//  Created by yc on 2018/4/12.
//  Copyright © 2018年 wei wang. All rights reserved.
//

#import "GetMessageList.h"

@implementation GetMessageList
{
    NSDictionary *_dic;
}

-(id)initWithDic:(NSDictionary *)dic{
    if (self = [super init]) {
        _dic = dic;
    }
    return self;
}

- (NSString *)requestUrl {
    return @"new/message/get_list2";
}

- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodPOST;
}

- (id)requestArgument {
    NSMutableDictionary *dic = [NSMutableDictionary getPubdic];
    if (_dic[@"device_type"]) {
        [dic setObject:_dic[@"device_type"] forKey:@"device_type"];
        
    }
    if (_dic[@"page"]) {
        [dic setObject:_dic[@"page"] forKey:@"page"];
        
    }
    
    NSString *sign=[NSString getSign:dic];
    [dic setObject:sign forKey:@"sign"];
    return dic;

}

-(void)dealloc
{
    NSLog(@"GetMessageList dealloc");
}
@end
